package com.gopay.common.domain.bis;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 银行交互服务-协议支付通道配置信息表
 * 
 * @BisEbankB2CConfig.java
 * @author yaobo
 * @2013-11-5 下午05:18:22 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_CONTRACTPAY_CH_CFG")
public class BisContractPayConfig extends BaseBisBankExtConfig {

    /**
     * 
     */
    private static final long serialVersionUID = 3402916105521943698L;

    /**
     * 流水号
     */
    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_CONTRACTPAY_CH_CFG_SQ_GENERATOR", sequenceName="BIS_CONTRACTPAY_CH_CFG_SEQ")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_CONTRACTPAY_CH_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_DEBIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean debitCard;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_CREDIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean creditCard;

    /**
     * 是否页面签约模式
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_PAGE_SIGN_MODE", nullable = false, precision = 1, scale = 0)
    private boolean signMode;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isDebitCard() {
		return debitCard;
	}

	public void setDebitCard(boolean debitCard) {
		this.debitCard = debitCard;
	}

	public boolean isCreditCard() {
		return creditCard;
	}

	public void setCreditCard(boolean creditCard) {
		this.creditCard = creditCard;
	}

	public boolean isSignMode() {
		return signMode;
	}

	public void setSignMode(boolean signMode) {
		this.signMode = signMode;
	}

    
}
